﻿using System;
using System.Web;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Data;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Diagnostics;
using System.Web.Mvc;
using FILSTARTUPS_CMS.Models;
namespace FILSTARTUPS_CMS.Models
{
    public class Category
    {
        [Key]
        public int catidPK { get; set; }

        [Column]
        [Display(Name="Category Name")]
        [Required(ErrorMessage="Category name is required")]
        public string categoryname { get; set; }
       
        [Column]
        [Display(Name="Description")]
        [Required(ErrorMessage="Category Description is required")]
        public string categorydescription { get; set; }
        
        [Column]
        [DisplayFormat(DataFormatString = "{0:MMMM d, yyyy}")]
        public DateTime datecreated { get; set; }

        [Display(Name="Dislay Mode")]
        //[ForeignKey("Routing")]
        public int routingidFK { get; set; }

        [Display(Name="Page")]
        //[ForeignKey("Page")]
        public int pageidFK { get; set; }
    }
    public class CategoryPost
    {
        public int catidPK { get; set; }
        public List<Post> post { get; set; }
        public string catdescription { get; set; }
        public string catname { get; set; }
        public DateTime datecreated { get; set; }
    }

    public class CategoryPage
    {

        public int catidPK { get; set; }
        public string categoryname { get; set; }
        public string categorydescription { get; set; }
        public string pagetitle { get; set; }

        public string enabled { get; set; }

        [DisplayFormat(DataFormatString = "{0:MMMM d, yyyy}")]
        public DateTime datecreated { get; set; }
    }
}